package dom4j;

import java.io.File;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;

public class XpathTest {

	public static void main(String[] args) throws Exception {
		
		SAXReader reader = new SAXReader();
		Document doc = reader.read(new File("2.xml"));
		Node node = doc.selectSingleNode("//Header");
		System.out.println(node);
		List<Node> nodes = doc.selectNodes("//tuyou");
		System.out.println(nodes);
	}
}
